import service from "./index"

export function addAccountData(data) {
    return service({
        url: "/transactionRecord/create",
        method: 'post',
        data
    })
}

// 更新

export function updateAccountData(data) {
    return service({
        url: "/transactionRecord/update",
        method: 'post',
        data
    })
}
export function delAccount(data) {
    return service({
        url: "/transactionRecord/delete",
        method: 'post',
        params:{
            id:data
        }
    })
}
export function getAccountData(data) {
    return service({
        url: "/transactionRecord/list",
        method: 'post',
        data
    })
}

// 统计
export function getAccountStatis() {
    return service({
        url: "/statistics/totalStatistics",
        method: 'post',
    })
}




